package com.yan.service;


import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

@Service
public class ScheduledService {

    @Scheduled(cron = "0/2 * * * * ?")
    public void abc(){
        System.out.println("执行了一次哦 哈");
    }



}
